package br.com.iswe.gwt.ui.client;

import br.com.iswe.core.entidades.gwt.RemoteEntityObject;

import com.google.gwt.user.client.ui.CheckBox;

public class CheckBoxBag extends CheckBox implements PropertiesBag{

	private RemoteEntityObject entityObject = null;
	
	public CheckBoxBag(){
		super();
	}
	
	public CheckBoxBag(RemoteEntityObject entityObject) {
		this.entityObject = entityObject;
	}
	
	public CheckBoxBag(String label){
		super(label);
		setStyleName("gwt-Label");
	}
	
	
	public String getPropriedade(String chave) {
		return (String)entityObject.getPropertyValue(chave);
	}

	public void setPropriedade(String chave, String valor) {
		entityObject.setPropertyValue(chave, valor);
	}

	public RemoteEntityObject getEntityObject() {
		return entityObject;
	}

	public void setEntityObject(RemoteEntityObject entityObject) {
		this.entityObject = entityObject;
	}
	
	
}
